using System;

namespace PoliceBase
{
    public class Address
    {
        #region DataFields
        private string _street;
        private string _subarb;
        private int _number;
        #endregion

        #region Properties
        public string Street
        {
            get { return _street; }
        }
        public string Subarb
        {
            get { return _subarb; }
        }
        public int Number
        {
            get { return _number; }
        }
        #endregion

        #region Constructors
        public Address(int number, string street, string subarb)
        {
            this._street = street;
            this._subarb = subarb;
            this._number = number;
        }
        #endregion

        #region Public methods
        public override string ToString()
        {
            return (this._number.ToString() + " " + this._street + " Street, " + this._subarb);
        }
        #endregion
    }
}
